package n07.second;

import java.util.Arrays;

public class N04 {

	public static void main(String[] args) {
		Student[]a= {
				new Student("20240108", "张三", 21, 1.75),
				new Student("20240105", "李四", 19, 1.95),
				new Student("20240101", "王五", 20, 1.85),
		};
		
		Arrays.sort(a);
		for (Student student : a) {
			System.out.println(student);
		}
	}

}
